package cn.hfjava.kz.service;

import cn.dev33.satoken.util.SaResult;
import cn.hfjava.kz.entity.dto.StudentQueryDTO;
import cn.hfjava.kz.entity.dto.StudentSavaDTO;
import cn.hfjava.kz.entity.dto.StudentSearchDTO;
import cn.hfjava.kz.entity.excel.StudentExcel;
import cn.hfjava.kz.entity.po.Student;
import cn.hfjava.kz.entity.vo.PageVO;
import cn.hfjava.kz.entity.vo.StudentVO;
import com.baomidou.mybatisplus.extension.service.IService;
import com.tencentcloudapi.common.exception.TencentCloudSDKException;
import jakarta.servlet.http.HttpServletResponse;
import org.springframework.web.multipart.MultipartFile;

import java.io.IOException;
import java.util.List;

/**
 * @author 86177
 * @description 针对表【students(考生表)】的数据库操作Service
 * @createDate 2024-07-10 09:24:13
 */
public interface StudentService extends IService<Student> {

    PageVO<StudentVO> findByPage(StudentQueryDTO studentQueryDTO);

    void addData(List<StudentExcel> list, String createdBy, Integer userId);

    List<StudentExcel> getData();

    // 根据 IDs 获取考生数据
    List<StudentExcel> findStudentExcelByIdList(List<Integer> idList);


    public boolean checkForDuplicates(List<StudentExcel> students);

    PageVO<Student>  searchPage(StudentSearchDTO dto);


    void saveStuAllInfo(StudentSavaDTO studentPo, String name, int userId);
}
